/**************************************************************************************************
* Title: SumMouse.h
* Author: Gael Huber
* Description: Handles mouse input and mouse events
**************************************************************************************************/
#ifndef __SUMMOUSE_H__
#define __SUMMOUSE_H__

#ifndef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x0800
#endif

#include <dinput.h>
#include "SumGlobals.h"

class Mouse {
public:
	// Constructors and destructors
	Mouse(void);
	Mouse(LPDIRECTINPUT8 input);
	~Mouse(void);

	void update(void);		// Updates the mouse data

	const DIMOUSESTATE& getMouseState(void) const;	// Returns the mouse state

private:
	LPDIRECTINPUTDEVICE8 mouse;		// The pointer to the mouse device
	DIMOUSESTATE mouseState;		// THe current state of the mouse
};

#endif